import request from '@/utils/request'

// 查询阈值管理列表
export function listThresholdmanage(query) {
  return request({
    url: '/real/thresholdmanage/list',
    method: 'get',
    params: query
  })
}

// 查询阈值管理详细
export function getThresholdmanage(deviceType) {
  return request({
    url: '/real/thresholdmanage/' + deviceType,
    method: 'get'
  })
}

// 新增阈值管理
export function addThresholdmanage(data) {
  return request({
    url: '/real/thresholdmanage',
    method: 'post',
    data: data
  })
}

// 修改阈值管理
export function updateThresholdmanage(data) {
  return request({
    url: '/real/thresholdmanage',
    method: 'put',
    data: data
  })
}

// 删除阈值管理
export function delThresholdmanage(deviceType) {
  return request({
    url: '/real/thresholdmanage/' + deviceType,
    method: 'delete'
  })
}
